-- GENERATED SPELL FOR [Lashtail Raptor] --


function spell0_686(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16831,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_686', 611, 1)
end

function spell1_686(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14918,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_686', 0, 1)
end

function spell2_686(pUnit, Event) --@Lash,n/a--
pUnit:FullCastSpellOnTarget(6607,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_686', 1000, 1)
end

function Sorts_686(pUnit, Event)
local choix_sorts_686 = math.random(0, 2)
if choix_sorts_686 == 0 then
pUnit:RegisterEvent('spell0_686', 1, 1)
end
if choix_sorts_686 == 1 then
pUnit:RegisterEvent('spell1_686', 1, 1)
end
if choix_sorts_686 == 2 then
pUnit:RegisterEvent('spell2_686', 1, 1)
end
end

function mob686_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_686', math.random(1500, 3000), 1)
end

function mob686_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob686_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob686_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(686, 1, 'mob686_Action')
RegisterUnitEvent(686, 2, 'mob686_Leave')
RegisterUnitEvent(686, 3, 'mob686_Kill')
RegisterUnitEvent(686, 4, 'mob686_Die')
